home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / DOCS / ST_GUIDE.PR / WD1772.TXT < prev    next >
Encoding:
Text File  |  2010-01-01  |  6.1 KB  |  90 lines

  1. DESKTOP x1k1                                ╔═════════════════╗
  2.                                 ║      WD1772     ║
  3.                                 ║ bit assignments ║
  4.                                 ╚═════════════════╝
  5.                                  Western Digital 1772
  6.               ┌─────────────────┐
  7.               │ Status Register │  b0=busy
  8.               │                 │  b1=index pulse/data requested (type I/II-III)
  9.               │                 │  b2=track 0    /lost data      (type I/II-III)
  10.               │                 │  b3=cyclic redundancy checksum error
  11.               │                 │  b4=record not found
  12.               │                 │  b5=spin up/DAM type ($FB/$F8 for read sector)
  13.               │                 │  b6=write protected
  14.               │                 │  b7=motor on (~10 index pulses after command)
  15.               └─────────────────┘
  16.              ┌──────────────────┐╔═══════════════╦═════════════════╦════╗
  17.              │ Command Register │║      bit      ║    command      ║type║
  18.              │                  │║7 6 5 4 3 2 1 0║                 ║    ║
  19.              │                  │╠═╤═╤═╤═╤═╤═╤═╤═╬═════════════════╬════╣
  20.              │                  │║0│0│0│0│h│v│1│1║ restore         ║  I ║
  21.              │                  │╟─┼─┼─┼─┼─┼─┼─┼─╫─────────────────╫────╢
  22.              │                  │║0│0│0│1│h│v│1│1║ seek            ║  I ║
  23.              │                  │╟─┼─┼─┼─┼─┼─┼─┼─╫─────────────────╫────╢
  24.              │                  │║0│0│1│u│h│v│1│1║ step            ║  I ║
  25.              │                  │╟─┼─┼─┼─┼─┼─┼─┼─╫─────────────────╫────╢
  26.              │                  │║0│1│0│u│h│v│1│1║ step in         ║  I ║
  27.              │                  │╟─┼─┼─┼─┼─┼─┼─┼─╫─────────────────╫────╢
  28.              │                  │║0│1│1│u│h│v│1│1║ step out        ║  I ║
  29.              │                  │╟─┼─┼─┼─┼─┼─┼─┼─╫─────────────────╫────╢
  30.              │                  │║1│0│0│m│h│0│0│0║ read  sector    ║ II ║
  31.              │                  │╟─┼─┼─┼─┼─┼─┼─┼─╫─────────────────╫────╢
  32.              │                  │║1│0│1│m│h│0│0│d║ write sector    ║ II ║
  33.              │                  │╟─┼─┼─┼─┼─┼─┼─┼─╫─────────────────╫────╢
  34.              │                  │║1│1│0│0│h│0│0│0║ read address    ║III ║
  35.              │                  │╟─┼─┼─┼─┼─┼─┼─┼─╫─────────────────╫────╢
  36.              │                  │║1│1│1│0│h│0│0│0║ read  track     ║III ║
  37.              │                  │╟─┼─┼─┼─┼─┼─┼─┼─╫─────────────────╫────╢
  38.              │                  │║1│1│1│1│h│0│0│0║ write track     ║III ║
  39.              │                  │╟─┼─┼─┼─┼─┴─┼─┼─╫─────────────────╫────╢
  40.              │                  │║1│1│0│1│int│0│0║ force interrupt ║ IV ║
  41.              │                  │╚═╧═╧═╧═╧═══╧═╧═╩═════════════════╩════╝
  42.              │                  │         h: motor on test
  43.              │                  │           v: verify track
  44.              │                  │       u: update track register
  45.              │                  │       m: multiple sectors
  46.              │                  │               d: DAM type ($FB/$F8)
  47.              │                  │         int: 00:without interrupt
  48.              │                  │              10:with    interrupt
  49.              │                  │              01:after index pulse
  50.              │                  │set   interrupt requested when command is over
  51.              │                  │clear interrupt requested when   SR    is read
  52.              │                  │┌─────────────────────────────────────────────┐
  53.              │                  ││               write track                   │
  54.              │                  │├─────────┬──────────┬───┬────────────────────┤
  55.              │                  ││ byte in │ byte out │MFM│     type           │
  56.              │                  │├─────────┼──────────┼───┼────────────────────┤
  57.              │                  ││ $00-$F4 │  $00-$F4 │yes│ data or gap        │
  58.              │                  │├─────────┼──────────┼───┼────────────────────┤
  59.              │                  ││   $F5   │    $A1   │ no│ sync/clearCRC      │
  60.              │                  │├─────────┼──────────┼───┼────────────────────┤
  61.              │                  ││   $F6   │    $C2   │ no│ synchronization    │
  62.              │                  │├─────────┼──────────┼───┼────────────────────┤
  63.              │                  ││   $F7   │  $ss-$ss │ no│ write CRC          │
  64.              │                  │├─────────┼──────────┼───┼────────────────────┤
  65.              │                  ││   $F8   │    $F8   │ no│ data address mark  │
  66.              │                  │├─────────┼──────────┼───┼────────────────────┤
  67.              │                  ││   $F9   │    $F9   │ no│ data mark          │
  68.              │                  │├─────────┼──────────┼───┼────────────────────┤
  69.              │                  ││   $FA   │    $FA   │ no│ data mark          │
  70.              │                  │├─────────┼──────────┼───┼────────────────────┤
  71.              │                  ││   $FB   │    $FB   │ no│ data address mark  │
  72.              │                  │├─────────┼──────────┼───┼────────────────────┤
  73.              │                  ││   $FC   │    $FC   │ no│ data mark          │
  74.              │                  │├─────────┼──────────┼───┼────────────────────┤
  75.              │                  ││   $FD   │    $FD   │ no│ data mark          │
  76.              │                  │├─────────┼──────────┼───┼────────────────────┤
  77.              │                  ││   $FE   │    $FE   │ no│ index address mark │
  78.              │                  │├─────────┼──────────┼───┼────────────────────┤
  79.              │                  ││   $FF   │    $FF   │ no│ data mark          │
  80.              └──────────────────┘└─────────┴──────────┴───┴────────────────────┘
  81.                  ┌──────────────┐
  82.                  │TracK Register│  b7-b0=track
  83.                  └──────────────┘
  84.                 ┌───────────────┐
  85.                 │SeCtor Register│  b7-b0=sector
  86.                 └───────────────┘
  87.                   ┌─────────────┐
  88.                   │DaTa Register│  b7-b0=data/track to seek
  89.                   └─────────────┘
  90.